<template>
  <div>我是home组件</div>
</template>
<script>
export default {
  name: "home",
};
</script>
<script setup>
import { onActivated, onMounted, onDeactivated } from "vue";
onMounted(() => {
  console.log("onMounted");
});
onActivated(() => {
  console.log("onActivated");
});
onDeactivated(() => {
  console.log("onDeactivated");
});
</script>

<style scoped></style>
